package com.zt.observer.event;

import com.zt.observer.domain.Apply;
import org.springframework.context.ApplicationEvent;

/**
 * 事件
 *
 * @author zt
 * @date 2021/12/9 17:17
 */
public class ApplyEvent extends ApplicationEvent {

    //被观察对象
    private Apply apply;

    public ApplyEvent(Object source) {
        super(source);
    }

    public ApplyEvent(Object source, Apply apply) {
        super(source);
        this.apply = apply;
    }

    public Apply getApply() {
        return apply;
    }
}
